package com.ruoyi.business.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.bizsys.domain.CreditAccount;
import com.ruoyi.bizsys.domain.IncreasedLimitList;

import java.math.BigDecimal;
import java.util.List;

/**
 * 账户信息Service接口
 *
 * @author african-loan
 * @date 2021-03-15
 */
public interface ICreditAccountInfoService {

    List<Object> importFile(List<IncreasedLimitList> list);

    /**
     * 根据客户id查找授信, custNos多个逗号分隔
     *
     * @param custNos
     * @return
     */
    public List<CreditAccount> findInCustNos(String custNos);

    /**
     * 批量更新当前额度
     *
     * @param list
     */
    public void updateCreditLineBatch(List<CreditAccount> list);

    /**
     * 根据规则结果更新客户信息
     * @param ruleRst
     * @param custNo
     */
    boolean updateCustomerByRuleResult(JSONObject ruleRst, String custNo,String type);

}

